import request from '@/utils/request'

// 查询入住信息列表
export function listRentInfo(query) {
  return request({
    url: '/workbenches/rentInfo/list',
    method: 'get',
    params: query
  })
}

// 查询入住信息详细
export function getRentInfo(rentInfoId) {
  return request({
    url: '/workbenches/rentInfo/' + rentInfoId,
    method: 'get'
  })
}

// 新增入住信息
export function addRentInfo(data) {
  return request({
    url: '/workbenches/rentInfo',
    method: 'post',
    data: data
  })
}

// 修改入住信息
export function updateRentInfo(data) {
  return request({
    url: '/workbenches/rentInfo',
    method: 'put',
    data: data
  })
}

// 删除入住信息
export function delRentInfo(rentInfoId) {
  return request({
    url: '/workbenches/rentInfo/' + rentInfoId,
    method: 'delete'
  })
}
